

        <g:set var="entityName" value="${message(code: 'score.label', default: 'Score')}" />
            <g:form method="post" >
                <g:hiddenField name="id" value="${scoreInstance?.id}" />
                <g:hiddenField name="version" value="${scoreInstance?.version}" />
                <div class="dialog">
                    <table>
                        <tbody>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                  <label for="student"><g:message code="score.student.label" default="Student" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: scoreInstance, field: 'student', 'errors')}">
                                    <g:select name="student.id" class="select" from="${Student.list()}" optionKey="id" value="${scoreInstance?.student?.id}"  />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                  <label for="score"><g:message code="score.score.label" default="Score" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: scoreInstance, field: 'score', 'errors')}">
                                    <g:textField name="score" value="${fieldValue(bean: scoreInstance, field: 'score')}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                  <label for="exam"><g:message code="score.exam.label" default="Exam" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: scoreInstance, field: 'exam', 'errors')}">
                                    <g:select name="exam.id" class="select" from="${Exam.list()}" optionKey="id" value="${scoreInstance?.exam?.id}"  />
                                </td>
                            </tr>
                        
                        </tbody>
                    </table>
                </div>
                <div class="buttons">
                    <span class="button"><g:actionSubmit class="save" action="update" value="${message(code: 'default.button.update.label', default: 'Update')}" /></span>
                    <span class="button"><g:actionSubmit class="delete" action="delete" value="${message(code: 'default.button.delete.label', default: 'Delete')}" onclick="return confirm('${message(code: 'default.button.delete.confirm.message', default: 'Are you sure?')}');" /></span>
                </div>
            </g:form>
